package com.woniu.service;

import com.woniu.Result;
import com.woniu.dto.ComplainDto;
import com.woniu.dto.HandleComplainDto;
import com.woniu.pojo.Complaint;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yellow Docker
 * @since 2022-11-16
 */
public interface IComplaintService extends IService<Complaint> {

    boolean submitComplainByDto(ComplainDto dto);

    List<Complaint> queryShopComplain(Integer shopId);

    List<Complaint> queryUserComplain(Integer userId);

    Result handleShopComplain(HandleComplainDto id);

    boolean rejectComplain(Integer id);

    boolean acceptComplain(Integer id);
}
